/*
 * @Author: xiehangyun 
 * @Date: 2025-05-14 17:10:59 
 * @Last Modified by: xiehangyun
 * @Last Modified time: 2025-05-14 23:14:55
 */


import { autorun } from "mobx";
import { CSSProperties, ReactNode, useEffect, useRef, useState } from "react";
import { Text } from '@tarojs/components';
import styles from "./ut_tag.module.less";

interface Iprops {
    className?: string
    /** 组件的内联样式, 可以动态设置的内联样式 */
    style?: string | CSSProperties
    children?: ReactNode;
}

// 商品标签
export default function UtTag(props: Iprops) {

    const dom = useRef<HTMLDivElement | null>(null);
    const [data, setData] = useState({});

    useEffect(() => {
    }, []);

    useEffect(() => autorun(() => {
        
    }, { delay: 30 }), []);

    return (
        <Text
            style={props.style}
            className={styles.ut_tag}
        >
            {props.children}
        </Text>
    );
}